import 'package:flutter/material.dart';

HiAppBar(String title, String rightTitle, VoidCallback rightBtnClick) {
  return AppBar(
    elevation: 4,
    shadowColor: Colors.grey.withOpacity(0.5),
    backgroundColor: Colors.white,
    foregroundColor: Colors.black,
    surfaceTintColor: Colors.transparent,
    centerTitle: false,
    leading: BackButton(),
    titleSpacing: 0,
    title: Text(
      title,
      style: TextStyle(fontSize: 18),
    ),
    actions: [
      InkWell(
        onTap: rightBtnClick,
        child: Container(
          padding: EdgeInsets.only(left: 15, right: 15),
          alignment: Alignment.center,
          child: Text(
            rightTitle,
            style: TextStyle(fontSize: 18, color: Colors.grey),
            textAlign: TextAlign.center,
          ),
        ),
      )
    ],
  );
}
